Shopglut\enhancements\ProductComparison\ProductComparisonDataManage D

Total Complexity 295
Dependencies 2
Dependents 3
Total lines 1,448
Lines of code 953
Logical lines of code 563
Comment lines 248
Methods 30
Properties 0

Methods 30

Method Rating Maintainability Complexity Lines of code
ajax_render_comparison_table()
C
33 30 85
render_floating_comparison_bar()
B
36 22 82
display_comparison_button_single()
B
40 19 53
matches_location()
B
46 20 36
shopglut_get_comparison_display_options()
B
36 17 72
render_comparison_button()
B
41 17 50
matches_location_with_context()
B
47 18 33
shopglut_render_comparison_preview()
A
38 14 65
get_button_inline_styles()
A
44 15 43
localize_comparison_settings()
A
49 16 26
save_productcomparison_layout_data()
A
40 13 61
reset_productcomparison_layout_settings()
A
42 9 53
get_comparison_styles()
A
48 9 38
ajax_get_comparison_products()
S
50 7 27
should_display_comparison_button()
S
52 7 25
get_active_layout_settings()
S
52 7 25
register_shop_hook()
S
54 7 22
register_archive_hook()
S
54 7 22
register_product_hook()
S
54 7 22
register_position_hooks()
S
55 6 20
sanitize_layout_settings()
S
59 4 15
display_comparison_button_archive()
S
67 4 9
get_setting_value()
S
66 4 9
page_has_shop_layout_shortcode()
S
64 4 10
enqueue_comparison_assets()
S
62 3 12
display_comparison_button_shop()
S
67 3 9
register_comparison_hooks()
S
72 2 6
get_instance()
S
70 2 7
__construct()
S
62 1 11
init_comparison_display()
S
72 1 5